package com.syq.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class CourseTemplate implements Serializable {
    private String cotno;

    private String cno;

    private String ano;

    private String cotname;

    private String cotimg;

    private Date cotdate;

    private Date cotstarttime;

    private Date cotendtime;

    private String cottype;

    private String cotstate;

    private String cotdesc;

    private Boolean isshare;

    private static final long serialVersionUID = 1L;

    public String getCotno() {
        return cotno;
    }

    public void setCotno(String cotno) {
        this.cotno = cotno;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getAno() {
        return ano;
    }

    public void setAno(String ano) {
        this.ano = ano;
    }

    public String getCotname() {
        return cotname;
    }

    public void setCotname(String cotname) {
        this.cotname = cotname;
    }

    public String getCotimg() {
        return cotimg;
    }

    public void setCotimg(String cotimg) {
        this.cotimg = cotimg;
    }

    public Date getCotdate() {
        return cotdate;
    }

    public void setCotdate(Date cotdate) {
        this.cotdate = cotdate;
    }

    public Date getCotstarttime() {
        return cotstarttime;
    }

    public void setCotstarttime(Date cotstarttime) {
        this.cotstarttime = cotstarttime;
    }

    public Date getCotendtime() {
        return cotendtime;
    }

    public void setCotendtime(Date cotendtime) {
        this.cotendtime = cotendtime;
    }

    public String getCottype() {
        return cottype;
    }

    public void setCottype(String cottype) {
        this.cottype = cottype;
    }

    public String getCotstate() {
        return cotstate;
    }

    public void setCotstate(String cotstate) {
        this.cotstate = cotstate;
    }

    public String getCotdesc() {
        return cotdesc;
    }

    public void setCotdesc(String cotdesc) {
        this.cotdesc = cotdesc;
    }

    public Boolean getIsshare() {
        return isshare;
    }

    public void setIsshare(Boolean isshare) {
        this.isshare = isshare;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CourseTemplate other = (CourseTemplate) that;
        return (this.getCotno() == null ? other.getCotno() == null : this.getCotno().equals(other.getCotno()))
            && (this.getCno() == null ? other.getCno() == null : this.getCno().equals(other.getCno()))
            && (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getCotname() == null ? other.getCotname() == null : this.getCotname().equals(other.getCotname()))
            && (this.getCotimg() == null ? other.getCotimg() == null : this.getCotimg().equals(other.getCotimg()))
            && (this.getCotdate() == null ? other.getCotdate() == null : this.getCotdate().equals(other.getCotdate()))
            && (this.getCotstarttime() == null ? other.getCotstarttime() == null : this.getCotstarttime().equals(other.getCotstarttime()))
            && (this.getCotendtime() == null ? other.getCotendtime() == null : this.getCotendtime().equals(other.getCotendtime()))
            && (this.getCottype() == null ? other.getCottype() == null : this.getCottype().equals(other.getCottype()))
            && (this.getCotstate() == null ? other.getCotstate() == null : this.getCotstate().equals(other.getCotstate()))
            && (this.getCotdesc() == null ? other.getCotdesc() == null : this.getCotdesc().equals(other.getCotdesc()))
            && (this.getIsshare() == null ? other.getIsshare() == null : this.getIsshare().equals(other.getIsshare()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCotno() == null) ? 0 : getCotno().hashCode());
        result = prime * result + ((getCno() == null) ? 0 : getCno().hashCode());
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getCotname() == null) ? 0 : getCotname().hashCode());
        result = prime * result + ((getCotimg() == null) ? 0 : getCotimg().hashCode());
        result = prime * result + ((getCotdate() == null) ? 0 : getCotdate().hashCode());
        result = prime * result + ((getCotstarttime() == null) ? 0 : getCotstarttime().hashCode());
        result = prime * result + ((getCotendtime() == null) ? 0 : getCotendtime().hashCode());
        result = prime * result + ((getCottype() == null) ? 0 : getCottype().hashCode());
        result = prime * result + ((getCotstate() == null) ? 0 : getCotstate().hashCode());
        result = prime * result + ((getCotdesc() == null) ? 0 : getCotdesc().hashCode());
        result = prime * result + ((getIsshare() == null) ? 0 : getIsshare().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cotno=").append(cotno);
        sb.append(", cno=").append(cno);
        sb.append(", ano=").append(ano);
        sb.append(", cotname=").append(cotname);
        sb.append(", cotimg=").append(cotimg);
        sb.append(", cotdate=").append(cotdate);
        sb.append(", cotstarttime=").append(cotstarttime);
        sb.append(", cotendtime=").append(cotendtime);
        sb.append(", cottype=").append(cottype);
        sb.append(", cotstate=").append(cotstate);
        sb.append(", cotdesc=").append(cotdesc);
        sb.append(", isshare=").append(isshare);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}